<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>搜索和分页</title>
  <script src="./js/jexcel.js"></script>
  <script src="./js/jsuites.js"></script>
  <link rel="stylesheet" href="./css/jsuites.css" type="text/css" />
  <link rel="stylesheet" href="./css/jexcel.css" type="text/css" />

  <link rel="stylesheet" href="./css/jexcel.datatables.css" type="text/css" />
</head>

<body>
  <h1>搜索和分页</h1>
  <p>将不同的电子表格分组在选项卡中</p>

  <div id="spreadsheet"></div>
</body>

<script type="module">
  import { text } from "./js/language.js";

  jspreadsheet(document.getElementById('spreadsheet'), {
    csv: './static/demo.csv',
    csvHeaders: true,
    search: true,
    pagination: 10,
    columns: [
      { type: 'text', width: 300 },
      { type: 'text', width: 200 },
      { type: 'text', width: 100 },
      { type: 'text', width: 100 },
      { type: 'text', width: 100 },
    ],
    text
  });

</script>

</html>